from django.contrib import admin
from .models import Categories, Article


class CategoriesAdmin (admin.ModelAdmin):
    list_display = ('name', 'slug', 'intro',)


class ArticleAdmin(admin.ModelAdmin):
    list_display = ('title', 'slug', 'author', 'pub_date', 'update_time')


admin.site.register(Categories, CategoriesAdmin)
admin.site.register(Article, ArticleAdmin)
